{if count($functions) > 0}

    <h2>Functions</h2>

    <div style="padding: 1em;">
    <table class="methods" width="100%" height="100%">
    {section name=func loop=$functions}
<tr>
    <td class="methodTd td_nact">
        <a name="{$functions[func].function_dest}"></a>
        <div class="methodArrow notactive"><a href="javascript: void(null)" class="micon"> </a></div>
    </td>

    <td class="inf">
        <a href="javascript: void(null)" class="methodLink type-method">
        <strong>{$functions[func].function_return|strip_tags|trim}</strong> {if $functions[func].ifunction_call.returnsref}&amp;{/if}{$functions[func].function_name}({if count($functions[func].ifunction_call.params)}{section name=params loop=$functions[func].ifunction_call.params}{if $smarty.section.params.iteration != 1}, {/if}{if $functions[func].ifunction_call.params[params].hasdefault}[{/if}{if $functions[func].ifunction_call.params[params].type}{$functions[func].ifunction_call.params[params].type|strip_tags|trim} {/if}{$functions[func].ifunction_call.params[params].name}{if $functions[func].ifunction_call.params[params].hasdefault} = {$functions[func].ifunction_call.params[params].default|escape:"html"}]{/if}{/section}{/if})
        </a>

        <div class="details" style="display: none;">
            {include file="docblock_new.tpl" sdesc=$functions[func].sdesc desc=$functions[func].desc tags=$functions[func].tags}

            {if count($functions[func].params) > 0}
                <p><span class="param">Parameters:</span></p>
                <ul class="params">
                {section name=params loop=$functions[func].params}
                <li>
                    <span class="var-type">{$functions[func].params[params].datatype}</span>
                    {$functions[func].params[params].var}
                    {if $functions[func].params[params].data}
                        <p>{$functions[func].params[params].data}</p>
                    {/if}
                </li>
                {/section}
                </ul>
            {/if}
            {if $functions[func].function_return != 'void'}
                <p><span class="param">Return:</span></p>
                <p class="return">{$functions[func].function_return}</p>
            {/if}
            {*if $functions[func].function_conflicts.conflict_type}
            <p><b>Conflicts with functions:</b> 
            {section name=me loop=$functions[func].function_conflicts.conflicts}
            {$functions[func].function_conflicts.conflicts[me]}<br />
            {/section}
            </p>
            {/if*}
        </div>
    </td>
    <td class="linenum" width="1%">
    line <span class="line-number">{if $functions[func].slink}{$functions[func].slink}{else}{$functions[func].line_number}{/if}</span>
    </td>
</tr>
{/section}
</table>
</div>
{/if}